<template>
  <view class="app-container">
    <u-cell-group :border="false" class="notice">
      <u-cell :border="false" icon="../../static/icons/shouyi.svg">
        <view slot="title">
          <text class="text">设备收益</text>
        </view>
        <view slot="value">
          <text class="value">￥{{datas.shouData[0]}}</text>
        </view>
      </u-cell>
    </u-cell-group>
    <earnings-component type="device" :data="datas.shouData"></earnings-component>
		
  </view>
</template>

<script>
import {getIncomes } from '@/api/api.js'
import EarningsComponent from '@/components/Earnings/Earnings.vue'
export default {
  components: { EarningsComponent },
  data() {
    return {
			// 所有的数据源
			datas:{
				shouData:[]
			},
		}
  },
	onLoad(options) {
    const item = JSON.parse(decodeURIComponent(options.item));
		this.datas.shouData = item
	},
	methods:{}
}
</script>

<style lang="scss">
.notice {
  background-color: #fff;
  height: 58px;
  line-height: 58px;
  box-sizing: border-box;
  .text {
    color: #00b6fc;
  }
  .value {
    font-size: 24px;
  }
  .u-cell-group__wrapper {
    height: 100%;
  }
  .u-cell__body {
    padding: 0 15px !important;
  }
}
</style>
